<template>
  <!-- <div>
    <div class="box">
      <h1>登陆页面</h1>
      <div class="foot">
        <button @click="btn">点击进入首页</button>
        <router-link to="./index">点击跳转</router-link>
      </div>
    </div>
  </div> -->

  <div id="app">
    <div class="login-container">
      <h2>登录</h2>
      <form>
        <div class="input-group">
          <label for="username">用户名:</label>
          <input type="text" id="username" v-model="username" />
        </div>
        <div class="input-group">
          <label for="password">密码:</label>
          <input type="password" id="password" v-model="password" />
        </div>
        <router-link to="./index">点击登陆</router-link>
      </form>
    </div>
  </div>
</template>
<script>
export default {
  name: '',
  data () {
    return {
    }
  },
  created () {
  },
  computed: {
  },
  methods: {
    btn () {
      console.log(this.$router);
      this.$router.push('./index')

    }
  }
}
</script>
<style lang='less'  scoped>
// .box {
//   text-align: center;
//   width: 600px;
//   height: 300px;
//   background-color: skyblue;
//   margin: 0 auto;
//   display: flex;
//   justify-content: space-around;
//   flex-direction: column;
//   .foot {
//     display: flex;
//     justify-content: space-around;
//   }
//   a {
//     text-decoration: none;
//     color: purple;
//   }
// }
#app {
  height: 100vh;
  width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Arial', sans-serif;
}

.login-container {
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  text-align: center;
}

h2 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 40px;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.input-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin-bottom: 30px;
}

label {
  flex-basis: 150px;
  font-size: 22px;
  font-weight: bold;
  color: #3a3a3a;
}

input[type='text'],
input[type='password'] {
  height: 48px;
  width: 100%;
  padding: 10px 20px;
  border: 2px solid #dcdcdc;
  border-radius: 5px;
  font-size: 18px;
  background-color: #f6f6f6;
  transition: border-color 0.2s ease-in-out;
}

input[type='text']::placeholder,
input[type='password']::placeholder {
  color: #999;
}

input[type='text']:focus,
input[type='password']:focus {
  border-color: #409eff;
  outline: none;
}

button.btn {
  height: 60px;
  width: 200px;
  border: none;
  border-radius: 5px;
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  background-color: #409eff;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

button.btn:hover {
  background-color: #66b1ff;
}
</style>
